﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AutoRotate : MonoBehaviour
{
	public Vector3 axis = Vector3.forward;

	public float angleSpeed;

	public Space space = Space.Self;
	// Use this for initialization
	void Start()
	{

	}

	// Update is called once per frame
	void Update()
	{
		transform.Rotate(axis, angleSpeed * Time.deltaTime, Space.Self);
	}
}
